import { http, jumpExport } from '@/utils/http/axios';

// 获取小程序用户列表
export function List(params) {
  return http.request({
    url: '/wxUser/list',
    method: 'get',
    params,
  });
}

// 删除/批量删除小程序用户
export function Delete(params) {
  return http.request({
    url: '/wxUser/delete',
    method: 'POST',
    params,
  });
}

// 添加/编辑小程序用户
export function Edit(params) {
  return http.request({
    url: '/wxUser/edit',
    method: 'POST',
    params,
  });
}

// 修改小程序用户状态
export function Status(params) {
  return http.request({
    url: '/wxUser/status',
    method: 'POST',
    params,
  });
}

// 获取小程序用户指定详情
export function View(params) {
  return http.request({
    url: '/wxUser/view',
    method: 'GET',
    params,
  });
}

// 导出小程序用户
export function Export(params) {
  jumpExport('/wxUser/export', params);
}